// import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/match",
  name: "Match",
  component: Layout,
  redirect: "/match/list",
  meta: {
    icon: "ep:medal",
    title: "比赛管理",
    rank: 4
  },
  children: [
    {
      path: "/match/list",
      name: "MatchList",
      component: () => import("@/views/match/list/index.vue"),
      meta: {
        icon: "ep:list",
        title: "比赛列表",
        showParent: true
      }
    },
    {
      path: "/match/create",
      name: "MatchCreate",
      component: () => import("@/views/match/create/index.vue"),
      meta: {
        icon: "ep:plus",
        title: "创建比赛",
        showParent: true
      }
    },
    {
      path: "/match/result",
      name: "MatchResult",
      component: () => import("@/views/match/result/index.vue"),
      meta: {
        icon: "ep:trophy",
        title: "比赛结果",
        showParent: true
      }
    },
    {
      path: "/match/detail/:id",
      name: "MatchDetail",
      component: () => import("@/views/match/detail/index.vue"),
      meta: {
        title: "比赛详情",
        showLink: false,
        activePath: "/match/list"
      }
    },
    // {
    //   path: "/match/edit/:id",
    //   name: "MatchEdit",
    //   component: () => import("@/views/match/edit/index.vue"),
    //   meta: {
    //     title: "编辑比赛",
    //     showLink: false,
    //     activePath: "/match/list"
    //   }
    // }
  ]
} satisfies RouteConfigsTable;
